package com.ruoyi.teaching.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teaching.mapper.QuestionTypeMapper;
import com.ruoyi.teaching.domain.QuestionType;
import com.ruoyi.teaching.service.IQuestionTypeService;

/**
 * 问题描述Service业务层处理
 * 
 * @author thl
 * @date 2024-01-05
 */
@Service
public class QuestionTypeServiceImpl implements IQuestionTypeService 
{
    @Autowired
    private QuestionTypeMapper questionTypeMapper;

    /**
     * 查询问题描述
     * 
     * @param id 问题描述主键
     * @return 问题描述
     */
    @Override
    public QuestionType selectQuestionTypeById(Long id)
    {
        return questionTypeMapper.selectQuestionTypeById(id);
    }

    /**
     * 查询问题描述列表
     * 
     * @param questionType 问题描述
     * @return 问题描述
     */
    @Override
    public List<QuestionType> selectQuestionTypeList(QuestionType questionType)
    {
        return questionTypeMapper.selectQuestionTypeList(questionType);
    }

    /**
     * 新增问题描述
     * 
     * @param questionType 问题描述
     * @return 结果
     */
    @Override
    public int insertQuestionType(QuestionType questionType)
    {
        return questionTypeMapper.insertQuestionType(questionType);
    }

    /**
     * 修改问题描述
     * 
     * @param questionType 问题描述
     * @return 结果
     */
    @Override
    public int updateQuestionType(QuestionType questionType)
    {
        return questionTypeMapper.updateQuestionType(questionType);
    }

    /**
     * 批量删除问题描述
     * 
     * @param ids 需要删除的问题描述主键
     * @return 结果
     */
    @Override
    public int deleteQuestionTypeByIds(Long[] ids)
    {
        return questionTypeMapper.deleteQuestionTypeByIds(ids);
    }

    /**
     * 删除问题描述信息
     * 
     * @param id 问题描述主键
     * @return 结果
     */
    @Override
    public int deleteQuestionTypeById(Long id)
    {
        return questionTypeMapper.deleteQuestionTypeById(id);
    }
}
